package cn.lili.modules.promotion.service;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.goods.entity.dos.Goods;
import cn.lili.modules.promotion.entity.dos.BoxMhgoods;
import cn.lili.modules.promotion.entity.dto.CallbackBlindboxDTO;
import cn.lili.modules.promotion.entity.dto.search.BoxMhGoodsSearchParams;
import cn.lili.modules.promotion.entity.vos.BoxMhgoodsVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author asus
* @description 针对表【box_mhgoods(盲盒商品管理)】的数据库操作Service
* @createDate 2023-11-21 10:26:26
*/
public interface BoxMhgoodsService extends IService<BoxMhgoods> {

    ResultMessage<Object> updateBoxGoods(BoxMhgoodsVO boxMhgoodsVO);

    ResultMessage<Object> addBoxGoods(BoxMhgoodsVO boxMhgoodsVO);

    ResultMessage<Object> pageBoxGoods(BoxMhGoodsSearchParams boxMhGoodsSearchParams);

    ResultMessage<Object> deleteBoxGoods(String ids);

    ResultMessage<Object> select(String goodsName);

    ResultMessage<Object> detail(String id);

    ResultMessage<Object> change(String id, Integer publishType);

    List<Goods> callbackMhGoods(CallbackBlindboxDTO callbackBlindboxDTO);

    ResultMessage<Object> drawNow(String id);

    public Goods pickOne(List<Goods> goodsList, String id, Boolean type);

    Boolean removeGoodsMh(String mhId, String id);

}
